package com.heatingcharge.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 * 预缴优惠表
 * </p>
 *
 * @author devin.jiang
 * @since 2019-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ChargeDiscountDTO extends HeatCompanyDTO implements Serializable {

    private static final long serialVersionUID=1L;
    private Integer id;
    /**
     * 供暖季
     */
    private Integer heatYearId;

    private String yearName;

    /**
     * 优惠方式 1:按比例优惠，2：按金额优惠
     */
    private Integer disMode;

    /**
     * 优惠值
     */
    private BigDecimal disValue;

    /**
     * 优惠开始日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startDate;

    /**
     * 优惠截至日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endDate;

    /**
     * 热力公司
     */
    private Integer companyId;

    private Boolean checkCurrentDate=false;


}
